import { emptyUser, useUserStore } from "../store/user";
import { router } from "../router";

// 当想要退出登陆或清除个人信息时调用此函数
export function quitOut(){
  const userStore = useUserStore()
  localStorage.removeItem('rememberMe')
  localStorage.removeItem('token')
  userStore.user = emptyUser
  router.push({name: 'Login'})
  localStorage.clear();
}

